import requests
# 导入公共域名
from config import BASE_URL


# 定义登录接口请求类
class Login(object):
    @classmethod
    def login_con(cls, body):
        url = BASE_URL + "/api/sys/login"
        headers = {
            "Content-Type": "application/json"
        }
        res1 =requests.post(url, headers=headers, json=body)
        return res1

if __name__ == '__main__':
    body = {"mobile": "13800000002", "password": "123456"}
    # 普通用户
    body1 = {}
    res = Login.login_con(body1)
    print(res.json())